#ifndef _OAT_FRACTURE_SCENE_LABEL_
#define _OAT_FRACTURE_SCENE_LABEL_

#include "OatFractureScene.h"
#include "OatFontStyle.h"

#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/SbColor.h>

struct COatFractureSceneLabelInfo
{
	SbString	m_Title[2];
	SbColor		m_TitleColor;
	SbVec2f		m_Origin;
	SbColor		m_LineColor;
	float		m_Width;
	float		m_Height;
	SbColor		m_LabelColor;
	SbString*	m_Labels;
	long		m_nNumber;
	COatFontStyle		m_FontStyle;
};

class COatFractureSceneLabel : public COatFractureScene
{
public:
	COatFractureSceneLabel(SbVec2f origin, SbVec2f size);
	~COatFractureSceneLabel();

	void Create();
	void Refresh();

	void Set(COatFractureSceneLabelInfo& oInfo);
	COatFractureSceneLabelInfo& Get();
private:
	void DrawTable(SoSeparator* pRoot);
	void DrawLeftLabel(SoSeparator* pRoot);
	void DrawRightLabel(SoSeparator* pRoot);
private:
	COatFractureSceneLabelInfo m_Info;
	SoSeparator*			m_pRoot;
};

#endif // _OAT_FRACTURE_SCENE_LABEL_
